
PLATFORM2_NAME=serverLogParser

currentpath=/home/sunxiaoye/test/logParser

currentlibpath=$currentpath/lib

pathtemp=$currentpath/classes

filelist=`ls ./lib`

for jarz in $filelist

do pathtemp=$pathtemp:$currentlibpath/$jarz

done

echo "################"
echo $pathtemp

#echo "java -cp "$pathtemp" com.sun.start.LogParseServerStart&"

nohup java -Djava.library.path=lib/ -Dflag=${PLATFORM2_NAME} -cp "$pathtemp" com.sun.start.LogParseServerStart &

#echo $classpath com.sun.start.com.sun.start